//package com.zhu.day.controller;
//
//import com.google.common.collect.Maps;
//import com.immomo.moaservice.live.activity.util.LiveMoaFactory;
//import com.immomo.moaservice.live.apibase.result.LiveBaseResult;
//import com.immomo.moaservice.live.behavior.api.ILiveBehaviorStarService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Service;
//
//import java.util.Map;
//
//@Service
//@Slf4j
//public class PopularFlowCardService {
//
//    private ILiveBehaviorStarService liveBehaviorStarService = LiveMoaFactory.getLiveBehaviorStarService();
//
//
//    //发放流量卡
//    public boolean sendFlowCard(String starid, Integer cardNum) {
//        log.info("GoddessHelpService.sendFlowCard starid:{}|cardNum:{}", starid, cardNum);
//
//        try {
//            String key = "week_star";
//            Map<String, Integer> data = Maps.newHashMap();
//            data.put(starid, cardNum);
//            log.info("GoddessHelpService.sendFlowCard starid:{}|cardNum:{}|key:{}|data:{}", starid, cardNum, key, data);
//            LiveBaseResult liveBaseResult = liveBehaviorStarService.sendPropsToMomoV2(key, "", data);
//            log.info("GoddessHelpService.sendFlowCard starid:{}|cardNum:{}|key:{}|data:{}|result:{}", starid, cardNum, key, data, liveBaseResult);
//            return true;
//        } catch (Exception e) {
//            log.error("GoddessHelpService.sendFlowCard starid:{}|cardNum:{} error", starid, cardNum, e);
//        }
//
//        return false;
//    }
//}
